package cn.edu.scau.cmi.mazhuanglong.adapter;


import java.util.Collections;
import java.util.Comparator;
import java.util.List;



public class SortUtil {
	public List<Student> sortInt(List<Student> studentList){
		Collections.sort(studentList, new Comparator<Student>() {
			public int compare(Student a,Student b) {
				if(a.getId()>b.getId())return 1;
				if(a.getId()==b.getId())return 0;
				return -1;
			}
		});
		
		return studentList;
		
	}
}
